<?php

interface IGroup
{
	/*
	 *
	 */
	public function getGroup($gid);

	/*
	 *
	 */
	public function getPostList($gid);

	/*
	 *
	 */
	public function getUsers($gid);

	/*
	 *
	 */
	public function getLatestViewerList($gid);

	/*
	 *
	 */
	public function getTopXGroupList();

	/*
	 *
	 */
	public function getCategoryList($gid);

	/*
	 *
	 */
	public function addGroup($groupData);

	/*
	 *
	 */
	public function editGroup($groupData);

	/*
	 *
	 */
	public function addUser($uid);

	/*
	 *
	 */
	public function removeUsers($uids);

	/*
	 *
	 */
	public function setTopXGroupList($gids);

	/*
	 *
	 */
	public function setTopXGroup($gid, $rank);
	
	/*
	 *
	 */
	public function addCategory($gid, $catData);
	
	public function joinGroup($uid, $gid);
	
	public function quitGroup($uid, $gid);
	
	public function getJoinedGroups($uid, $pnum, $psize);
}
